package com.carlinfo.stu_ques.question.pojo;

import java.util.Date;

/**
 * 属性:id,名字,得分,回答总人数,创建时间,结束时间
 * 
 */
public class Question
{
	private int id;
	private String name;
	private int score;
	private int people;
	private int number;
	private Date createTime;
	private Date endTime;

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}
	public void setPeople(int people)
	{
		this.people = people;
	}
	public int getPeople()
	{
		return people;
	}

	public int getScore()
	{
		return score;
	}

	public void setScore(int score)
	{
		this.score = score;
	}

	public int getNumber()
	{
		return number;
	}

	public void setNumber(int number)
	{
		this.number = number;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getEndTime()
	{
		return endTime;
	}

	public void setEndTime(Date endTime)
	{
		this.endTime = endTime;
	}

	@Override
	public String toString()
	{
		String result = getId() + "\t" + getName() + "\t" + getScore()  + "\t" + getNumber() + "\t" + getCreateTime().toLocaleString() + "\t"
				+ getEndTime().toLocaleString();
		/*return "Question [id=" + id + ", name=" + name + ", score=" + score + ", number=" + number + ", createTime="
				+ createTime + ", endTime=" + endTime + "]";*/
		return result ;
	}
}
